package com.cn.common;

import java.util.HashSet;
import java.util.Set;

/**
 * 存放节点url
 */
public class BrokersUrlStore {

    /**
     * 存放 broker节点url
     */
    private static final Set<String> brokerUrl = new HashSet<>();

    public static void put(String url) {
        brokerUrl.add(url);
    }

    public static Set<String> getAll() {
        return brokerUrl;
    }

    public static void del(String url) {
        brokerUrl.remove(url);
    }

}
